package shuati;

/**
 * @date:2022/9/25
 * @author:CqLtd
 * @name:奇数单增序列
 */

import java.util.ArrayList;
import java.util.Collections;
import java.util.Scanner;

public class P1 {

    public static void main(String[] args) {

        Scanner sc=new Scanner(System.in);
        int n=sc.nextInt();
        ArrayList arr=new  ArrayList();
        for (int i = 0; i <n; i++) {
            arr.add(sc.nextInt());
        }
        for (int i = 0; i < arr.size(); i++) {
            if((int) arr.get(i)%2==0){
                arr.remove(i);i--;
            }
        }
        Collections.sort(arr);
        int k=arr.size();
        for (int i = 0; i < k-1; i++) {
            System.out.print(arr.get(i)+",");
        }
        System.out.println(arr.get(k-1));
    }
}